﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BrnMall.Manager.Domain.WebIM;

namespace BrnMall.Manager.Manager.WebIM
{
    public  static class UserSigManager
    {
        public static UserSig GetUserSig(int uid)
        {
            using (var db = new QDMallDatabase())
            {
                return db.SingleOrDefault<UserSig>(uid);
            }
        }

        public static void DeleteUserSig(int uid)
        {
            using (var db = new QDMallDatabase())
            {
                db.Delete<UserSig>(uid);
            }
        }

        public static void AddUserSig(UserSig sig)
        {
            using (var db = new QDMallDatabase())
            {
                db.Insert(sig);
            }
        }
    }
}
